package com.animal.bean;

import java.sql.Timestamp;
import java.text.DateFormat;
import java.text.SimpleDateFormat;

public class ExpBean {
	
	private String FileNumber;
	private String FileTitle;
	private String UserID;
	private String AnimalID;
	private Timestamp ExperimentDate;
	private Timestamp FillingDate;
	private String FileState;
	private String ExperimentDataTip;
	private String FilePath;
	
	public String getFileNumber() {
		return FileNumber;
	}
	public void setFileNumber(String fileNumber) {
		FileNumber = fileNumber;
	}
	public String getFileTitle() {
		return FileTitle;
	}
	public void setFileTitle(String fileTitle) {
		FileTitle = fileTitle;
	}
	public String getUserID() {
		return UserID;
	}
	public void setUserID(String userID) {
		UserID = userID;
	}
	public String getAnimalID() {
		return AnimalID;
	}
	public void setAnimalID(String animalID) {
		AnimalID = animalID;
	}
	public void setExperimentDate(Timestamp timestamp) {
		ExperimentDate = timestamp;
	}
	public void setFillingDate(Timestamp timestamp) {
		FillingDate = timestamp;
	}
	
	public String getFileState() {
		return FileState;
	}
	public void setFileState(String fileState) {
		FileState = fileState;
	}

	public String getExperimentDate() {
		if(ExperimentDate==null){
			return null;
		}
		else{
			String value = null;
			//将Date类型的时间转换成指定格式的字符串
			DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
			value = dateFormat.format(ExperimentDate);
			return value;
		}
	}
	public String getFillingDate() {
		if(FillingDate==null){
			return null;
		}
		else{
			String value = null;
			DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
			value = dateFormat.format(FillingDate);
			return value;
		}
	}
	public String getExperimentDataTip() {
		return ExperimentDataTip;
	}
	public void setExperimentDataTip(String experimentDataTip) {
		ExperimentDataTip = experimentDataTip;
	}
	public String getFilePath() {
		return FilePath;
	}
	public void setFilePath(String filePath) {
		FileState = filePath;
	}
}